package com.kamistoat.meimeistore.order.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kamistoat.common.utils.PageUtils;
import com.kamistoat.common.utils.Query;
import com.kamistoat.meimeistore.order.dao.SubOrderDao;
import com.kamistoat.meimeistore.order.entity.SubOrderEntity;
import com.kamistoat.meimeistore.order.service.SubOrderService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("subOrderService")
public class SubOrderServiceImpl extends ServiceImpl<SubOrderDao, SubOrderEntity> implements SubOrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SubOrderEntity> page = this.page(
                new Query<SubOrderEntity>().getPage(params),
                new QueryWrapper<SubOrderEntity>()
        );

        return new PageUtils(page);
    }
}